'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  console.log('router==============>get===========>findall');
  router.get('/', controller.equipmentController.index);
  router.get('/findEquipmentAll', controller.equipmentController.findEquipmentAll);
  router.post('/updateEquipmentById', controller.equipmentController.updateEquipmentById);
  router.post('/insertEquipment', controller.equipmentController.insertEquipment);
  router.post('/deleteEquipmentById', controller.equipmentController.deleteEquipmentById);
};
